package com.xingbang.uitl.mission;
import com.alibaba.excel.util.DateUtils;
import com.xingbang.controller.UserController;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.Date;
/**
 * @author zchcpy
 */
@Component
@EnableScheduling
public class MissionCheckUnSuccessiveRecord {
	private final Logger myLog = LoggerFactory.getLogger(MissionCheckUnSuccessiveRecord.class);
	@Resource
	private UserController userController;
	@Scheduled(cron = "*/10 * * * * ?")
	public void doCheck() {
		myLog.info("开始执行定时任务" + DateUtils.format(new Date(), DateUtils.DATE_FORMAT_19));
		userController.user();
	}
}
